package com.hutu.erp.catalog.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品组合对象 catalog_product_attribute_combination
 * 
 * @author ruoyi
 * @date 2021-05-24
 */
public class ProductCombination extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 组合id */
    private Long combinationId;

    /** 商品id */
    @Excel(name = "商品id")
    private Long productId;

    /** 唯一码 */
    @Excel(name = "唯一码")
    private String gtin;

    /** sku码 */
    @Excel(name = "sku码")
    private String sku;

    /** 单品表达 */
    @Excel(name = "单品表达")
    private String attributesJson;

    /** 售价 */
    @Excel(name = "售价")
    private BigDecimal overriddenSalesPrice;

    /** 采购价 */
    @Excel(name = "采购价")
    private BigDecimal overriddenPurchasePrice;

    /** 图片id */
    @Excel(name = "图片id")
    private Long pictureId;

    /** 删除标志（0代表存在 2代表删除） */
    @Excel(name = "删除标志", readConverterExp = "0=代表存在,2=代表删除")
    private Integer deleted;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Integer displayOrder;

    public void setCombinationId(Long combinationId) 
    {
        this.combinationId = combinationId;
    }

    public Long getCombinationId() 
    {
        return combinationId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setGtin(String gtin) 
    {
        this.gtin = gtin;
    }

    public String getGtin() 
    {
        return gtin;
    }
    public void setSku(String sku) 
    {
        this.sku = sku;
    }

    public String getSku() 
    {
        return sku;
    }
    public void setAttributesJson(String attributesJson) 
    {
        this.attributesJson = attributesJson;
    }

    public String getAttributesJson() 
    {
        return attributesJson;
    }
    public void setOverriddenSalesPrice(BigDecimal overriddenSalesPrice) 
    {
        this.overriddenSalesPrice = overriddenSalesPrice;
    }

    public BigDecimal getOverriddenSalesPrice() 
    {
        return overriddenSalesPrice;
    }
    public void setOverriddenPurchasePrice(BigDecimal overriddenPurchasePrice) 
    {
        this.overriddenPurchasePrice = overriddenPurchasePrice;
    }

    public BigDecimal getOverriddenPurchasePrice() 
    {
        return overriddenPurchasePrice;
    }
    public void setPictureId(Long pictureId) 
    {
        this.pictureId = pictureId;
    }

    public Long getPictureId() 
    {
        return pictureId;
    }
    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }
    public void setDisplayOrder(Integer displayOrder) 
    {
        this.displayOrder = displayOrder;
    }

    public Integer getDisplayOrder() 
    {
        return displayOrder;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("combinationId", getCombinationId())
            .append("productId", getProductId())
            .append("gtin", getGtin())
            .append("sku", getSku())
            .append("attributesJson", getAttributesJson())
            .append("overriddenSalesPrice", getOverriddenSalesPrice())
            .append("overriddenPurchasePrice", getOverriddenPurchasePrice())
            .append("pictureId", getPictureId())
            .append("deleted", getDeleted())
            .append("displayOrder", getDisplayOrder())
            .toString();
    }
}
